public class ClientClass {
    public static void main(String[] args) {
       
    }
    /**
     * @param fruitname
     * @return
     */
    public String factory(String fruitname){
        if (fruitname.equals("apple")){
            return "apple";
        }
        if(fruitname.equals("banana")){
            return "banana"; 
        }
        return null;
    }
}